package com.sql.weeego.bean.base;

/**
 * UcTagsId entity. @author MyEclipse Persistence Tools
 */

public class UcTagsId implements java.io.Serializable {

	// Fields

	private String tagname;
	private Short appid;
	private String data;
	private Integer expiration;

	// Constructors

	/** default constructor */
	public UcTagsId() {
	}

	/** minimal constructor */
	public UcTagsId(String tagname, Short appid, Integer expiration) {
		this.tagname = tagname;
		this.appid = appid;
		this.expiration = expiration;
	}

	/** full constructor */
	public UcTagsId(String tagname, Short appid, String data, Integer expiration) {
		this.tagname = tagname;
		this.appid = appid;
		this.data = data;
		this.expiration = expiration;
	}

	// Property accessors

	public String getTagname() {
		return this.tagname;
	}

	public void setTagname(String tagname) {
		this.tagname = tagname;
	}

	public Short getAppid() {
		return this.appid;
	}

	public void setAppid(Short appid) {
		this.appid = appid;
	}

	public String getData() {
		return this.data;
	}

	public void setData(String data) {
		this.data = data;
	}

	public Integer getExpiration() {
		return this.expiration;
	}

	public void setExpiration(Integer expiration) {
		this.expiration = expiration;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof UcTagsId))
			return false;
		UcTagsId castOther = (UcTagsId) other;

		return ((this.getTagname() == castOther.getTagname()) || (this
				.getTagname() != null
				&& castOther.getTagname() != null && this.getTagname().equals(
				castOther.getTagname())))
				&& ((this.getAppid() == castOther.getAppid()) || (this
						.getAppid() != null
						&& castOther.getAppid() != null && this.getAppid()
						.equals(castOther.getAppid())))
				&& ((this.getData() == castOther.getData()) || (this.getData() != null
						&& castOther.getData() != null && this.getData()
						.equals(castOther.getData())))
				&& ((this.getExpiration() == castOther.getExpiration()) || (this
						.getExpiration() != null
						&& castOther.getExpiration() != null && this
						.getExpiration().equals(castOther.getExpiration())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getTagname() == null ? 0 : this.getTagname().hashCode());
		result = 37 * result
				+ (getAppid() == null ? 0 : this.getAppid().hashCode());
		result = 37 * result
				+ (getData() == null ? 0 : this.getData().hashCode());
		result = 37
				* result
				+ (getExpiration() == null ? 0 : this.getExpiration()
						.hashCode());
		return result;
	}

}